Repository navigation
LSPR24: canonical IPv6, address joins, and Windows fill on the host's own addresses - #18
Merged
Merged
Conversation
LSPR24 spells IPv6 out in full; the flow store, firru's output and the definitions everywhere else write it compressed (RFC 5952). The generator copied the dataset's spelling into def/networks.yml, so an address there did not match the same address in any flow or report when compared as text. defs_from_expoid.py now writes canonical_ip(), the helper lspr24_to_flows.py already uses. That exposed two joins that only worked because both sides happened to be spelled the same way: flows_to_enforced.py and listening_split.py joined the dataset's DstIP to definition addresses as strings, and lost every IPv6 flow once the definitions were compressed. They now join through canon_table(), each raw address mapped to its canonical form. Regenerated: def/networks.yml changes spelling only (314 lines each way); every policy, zone, report, the ladder and the listening split are identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
assumptions.py fills in the Windows listeners syscollector never saw change from a stock-install baseline run, and copied each listener as the baseline recorded it, bind address included. Windows binds DNS, UDP Kerberos and NetBIOS per address, so the filled-in listeners on the domain controllers and members named the baseline VM's lab address (192.168.150.194) and link-local one: addresses LSPR24 never mentions, in no flow and nowhere in the OSSEC archive. A filled-in listener bound to a specific address is now bound to the host's own addresses of that family, from its inventory token, and records the baseline's in bind_from. The lab VM has no global IPv6, so its link-local bind is the per-address IPv6 listener and binds to the host's IPv6 addresses; dc1 answers DNS over IPv6 in the capture. Regenerated: 8 hosts' loot-assumed listeners, and the [auto] comments of 8 synthesized policies (dc1's DNS now reads 10.5.12.2 and 2a07:1182:5:12::2). No term, source or result changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes to the LSPR24 example's inputs, neither changing a result.
IPv6 as the flow store writes it, and joins on the address. LSPR24 spells IPv6 out in full; the flow store and everything firru prints write it compressed.
defs_from_expoid.pycopied the dataset's spelling intodef/networks.yml, so the same address never matched as text. It now writescanonical_ip(), the helperlspr24_to_flows.pyalready uses. That exposed two joins that only worked because both sides were spelled alike:flows_to_enforced.pyandlistening_split.pyjoined the dataset'sDstIPto definition addresses as strings, and lost every IPv6 flow once the definitions were compressed. They now join throughcanon_table().Filled-in Windows listeners bind to the host's own addresses.
assumptions.pycopied each baseline listener with the baseline VM's bind address. Windows binds DNS, UDP Kerberos and NetBIOS per address, so the domain controllers' filled-in listeners named the lab VM's 192.168.150.194 and its link-local address, which LSPR24 never mentions. A specific-address listener is now bound to the host's addresses of that family (bind_fromkeeps the original); the lab VM's link-local bind maps to the host's IPv6 addresses, since dc1 answers DNS over IPv6 in the capture.Regenerated:
def/networks.ymlchanges spelling only; 8 hosts' filled-in listeners and the[auto]comments of 8 synthesized policies change. Every term, source, zone, report, the ladder and the listening split are identical.make clean allreproduces the committed outputs; tests pass.🤖 Generated with Claude Code